home *** CD-ROM | disk | FTP | other *** search
- /* Build AnySched PDB header */
- trace off
- parse arg reslt
- say 'enter internal PDB Name (keep it < 25 characters)'
- parse pull intern
- hdrfile = 'header.fil'
- del 'header.fil'
- outrec = intern
- pos = length(intern)
- len = 32 - pos
- outrec = insert('00'x,outrec,pos,len,'00'x)
- outrec = insert('0000000106d144ae06d144ae'x,outrec,32)
- outrec = insert('00'x,outrec,44,16,'00'x)
- outrec = insert('SchdSHP1',outrec,60)
- outrec = insert('00'x,outrec,68,8,'00'x)
- res2 = charout(hdrfile,outrec)
- hexnum = d2x(reslt,4)
- interpret "res2 = charout(hdrfile,'"hexnum"'x)"
- lstsize = reslt * 8
- do n = 1 to reslt
- recloc = 78 + lstsize + ((n - 1) * 120) + 2
- hexloc = d2x(recloc,8)
- interpret "res2 = charout(hdrfile,'"hexloc"'x)"
- res2 = charout(hdrfile,'00000000'x)
- end /* do */
- res2 = charout(hdrfile,'0000'x)
- res2 = charout(hdrfile)
- exit 0
-